package com.juanjuan.myproject.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.juanjuan.myproject.entity.Rule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 规则表 Mapper 接口
 * </p>
 *
 * @author zhaocun
 * @since 2023-10-25
 */
@Mapper
@Repository
public interface RuleMapper extends BaseMapper<Rule> {

    List<Rule> getRuleList();

    int insertBatch(@Param("records") List<Rule> records);

    int updateBatch(@Param("records") List<Rule> records );

    int updateBatchIsSecuss(@Param("records") List<Rule> records );
}
